package error


var (
	ErrRecordNotFound = New("record not found")
	ErrInsertFail = New("record insert fail")
	ErrUpdateFail = New("record update fail")
	)
//db
type DbError struct {
	Msg     string
	//problem string
}

func New(msg string) *DbError {
	return &DbError{Msg: msg}
}

func (e DbError) Error() string {
	//return fmt.Sprintf("参数不正确，因为\"%d\"不是双数", e.Num)
	return e.Msg
}


